<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;

class IndexController extends Controller
{
    //构造方法中设置中间件
//    public function __construct(){
//        $this->middleware(["checkLogin"]);
//    }


    //展示首页
    public function index(){
        return view("admin.index.index");
    }
    //首页子页面展示
    public function welcome(){
        return view("admin.index.welcome")->with("退出成功");
    }
}
